package com.zzyl.service;

import com.zzyl.entity.AlertData;
import com.zzyl.vo.AlertDataVo;
import com.zzyl.vo.DeviceDataVo;

import java.util.List;
import java.util.Map;

/**
 * @Description RedisService
 * @Author Hua Caoxing
 * @Data 2025-09-15
 */

public interface RedisService {
    Map<String,List<DeviceDataVo>> getAllLatestDeviceData();

    void delete(String iotId, String functionId, String alertCountCacheKey);

    void setSilentPeriod(String iotId, String functionId, Integer alertSilentPeriod);

    void setCount(String alertCountCacheKey, String iotId, String functionId, Integer count);

    String hasKey(String alertCountCacheKey, String iotId, String functionId);

}
